# schedules/urls.py
from django.urls import path
from . import views

app_name = 'schedules'

urlpatterns = [
    # 基础档期操作
    path('chefs/<int:chef_id>/time-slots/', views.ChefTimeSlotView.as_view(), name='chef-time-slots'),
    path('time-slots/<int:pk>/', views.TimeSlotUpdateView.as_view(), name='time-slot-detail'),
        #获取厨师可用档期接口
    path('chefs/available-slots/<int:chef_id>/', views.AvailableTimeSlotsView.as_view(), name='available-slot'),
    # 批量操作
    path('chefs/<int:chef_id>/time-slots/batch/', views.TimeSlotBatchCreateView.as_view(), name='batch-create-slots'),
    
    # 高级查询
    path('time-slots/range/', views.TimeSlotRangeView.as_view(), name='time-slot-range'),
]